/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package A1;


import java.io.*;

/**
 *
 * @author Mary Llenos
 * GetUserInput class is for getting string inputs for user
 */
public class GetUserInput {
    public static String getUserChoice (String subMenu) {
       System.out.print(subMenu);
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
       String input = null;
       try {
         input = br.readLine();
       } catch (IOException e) {
         System.out.println("Error!");
         System.exit(1);
       }
      return input;
    }
}